<?php
namespace Controllers\Index;
class Index extends \controller{
	public function index(){
		$user=$this->M("users");
		$a=$user->F(7);
		echo $a->username;
		//var_dump($a);
	}
	public function home(){
		$this->assign('a','success!');
		$this->display();
	}
	public function mylog(){
		write_log($_SERVER);
	}
	public function redis(){
		\redis::set('key','value');
		echo \redis::get('key');
	}
}